package com.example.web.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import com.example.web.config.ApplicationContextRegister;
import com.example.web.tool.Demo;

@RestController
public class TestController {

	private static Demo Demo = (Demo) ApplicationContextRegister.getBean("demoImpl");

	@GetMapping("/test")
	public String test() {
		return Demo.papapa();
	}
}
